package com.jxd.dianping.service;

import com.jxd.dianping.common.BusinessException;
import com.jxd.dianping.model.SellerModel;

import java.util.List;

public interface SellerService {

    /**
     * 新建商户
     * @param sellerModel
     * @return
     */
    SellerModel create(SellerModel sellerModel) throws BusinessException;

    /**
     * 根据id查询商户
     * @param id
     * @return
     */
    SellerModel get(Integer id) throws BusinessException;

    /**
     * 查询所有商户信息
     * @return
     */
    List<SellerModel> selectAll();

    /**
     * 修改商户状态
     * @param id
     * @param disableFlag
     * @return
     */
    SellerModel changeStatus(Integer id, Integer disableFlag) throws BusinessException;

    /**
     * 获取商户数
     */
    Integer countAllSeller();


}
